From f2a084d96b592a295281352885d90f7010eb42ce Mon Sep 17 00:00:00 2001 From: "kaf24@labyrinth.cl.cam.ac.uk" Date: Fri, 14 Feb 2003 19:01:48 +0000 Subject: [PATCH] bitkeeper revision 1.40 (3e4d3d1cT1UtXot3hq1e1w8H9jqLFw) traps.c: Fix embarrassing do_set_trap_table() behaviour. --- xen-2.4.16/arch/i386/traps.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xen-2.4.16/arch/i386/traps.c b/xen-2.4.16/arch/i386/traps.c index b8297fe3eb..1505907b19 100644 --- a/xen-2.4.16/arch/i386/traps.c +++ b/xen-2.4.16/arch/i386/traps.c @@ -563,7 +563,12 @@ long do_set_trap_table(trap_info_t *traps) trap_info_t cur; trap_info_t *dst = current->thread.traps; - memset(dst, 0, sizeof(*dst) * 256); + /* + * I'm removing the next line, since it seems more intuitive to use this + * as an interface to incrementally update a domain's trap table. Clearing + * out old entries automatically is rather antisocial! + */ + /*memset(dst, 0, sizeof(*dst) * 256);*/ for ( ; ; ) { -- 2.30.2